import 'package:flutter/material.dart';

import '../../config/public_color.dart';

/// FileName padding_divider
///
/// @Author lax
/// @Date 2023/4/17
///
/// @Description

class PaddingDivider extends StatelessWidget {
  final EdgeInsets? padding;

  final double height;

  final Color? color;

  const PaddingDivider({
    super.key,
    this.padding = const EdgeInsets.symmetric(horizontal: 16),
    this.height = 0.5,
    this.color,
  });

  @override
  Widget build(BuildContext context) {
    return Padding(
      padding: padding ?? EdgeInsets.zero,
      child: Divider(
          height: height,
          thickness: height,
          color: color ?? PublicColor.divider),
    );
  }
}
